/*
 * Project 1 phase 1
 * Efim Todorasco and Liviu Patrasco  
 */
public class Paddle extends SceneGraphNode {
	public Paddle() {
		this(true);
	}

	public Paddle(boolean pickable) {
		super(pickable);
		float tr;
		SceneGraphNode childt;
		SceneGraphNode childr;
		SceneGraphNode childc = new Circle(false);
		childc.scale = .25f;
		childc.translateY = .015f;
		addChild(childc);
		childc = new Circle(false);
		childc.scale = .25f;
		childc.translateY = .015f;
		childc.translateX = .8f;
		addChild(childc);
		tr = .2f;
		for (int i =0; i < 3; i++) {
		childr = new Rectangle(false);
		childr.scale = .2f;
		childr.translateY = .037f;
		childr.translateX = tr;
		tr  += .2f;
		addChild(childr);
		}
		tr = .2f;
		for (int i = 0; i < 3; i++) {
			childt = new Triangle(false);
			childt.scale = .2f;
			childt.translateX = tr;
			tr += .2f;
			addChild(childt);
		}
		tr = .1f;
		for (int i = 0; i < 4; i++) {
			childt = new Triangle(false);
			childt.scale = .2f;
			childt.rotation = 180;
			childt.translateY = .08f;
			childt.translateX = tr;
			tr += .2f;
			addChild(childt);
		}	
	}
}